package com.study.school.service.impl;

import com.study.school.service.Axe;
import com.study.school.service.Person;
import org.springframework.beans.factory.annotation.Autowired;

public class Chinese implements Person {
    private Axe axe;
@Autowired
    public Chinese(Axe axe) {
        this.axe = axe;
    }
    public void setAxe(Axe axe){
        this.axe=axe;
    }

    @Override
    public void useAxe() {
        System.out.println("中国人使用斧头: "+axe.chop());
    }
}
